/**
* @file queue_processor_host.h
*
* Copyright (c) Huawei Technologies Co., Ltd. 2020-2021. All rights reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#ifndef QUEUE_PROCESS_HOST_H
#define QUEUE_PROCESS_HOST_H

#include <map>
#include <string>
#include "queue_process.h"

namespace acl {
class QueueProcessorHost : public QueueProcessor
{
public:
    virtual aclError acltdtCreateQueue(const acltdtQueueAttr *const attr, uint32_t *const qid) override;

    virtual aclError acltdtDestroyQueue(const uint32_t qid) override;

    virtual aclError acltdtBindQueueRoutes(acltdtQueueRouteList *const qRouteList) override;

    virtual aclError acltdtUnbindQueueRoutes(acltdtQueueRouteList *const qRouteList) override;

    virtual aclError acltdtQueryQueueRoutes(const acltdtQueueRouteQueryInfo *const queryInfo,
                                    acltdtQueueRouteList *const qRouteList) override;

    aclError SendBindUnbindMsg(const int32_t deviceId, acltdtQueueRouteList *const qRouteList,
        const bool isBind, rtEschedEventSummary_t &eventSum, rtEschedEventReply_t &ack) const;

    aclError QueryQueueRoutes(const int32_t deviceId, const acltdtQueueRouteQueryInfo *const queryInfo,
        const size_t routeNum, rtEschedEventSummary_t &eventSum,
        rtEschedEventReply_t &ack, acltdtQueueRouteList *const qRouteList) const;

    QueueProcessorHost() = default;
    virtual ~QueueProcessorHost() = default;

    // not allow copy constructor and assignment operators
    QueueProcessorHost(const QueueProcessorHost &) = delete;

    QueueProcessorHost &operator=(const QueueProcessorHost &) = delete;

    QueueProcessorHost(QueueProcessorHost &&) = delete;

    QueueProcessorHost &&operator=(QueueProcessorHost &&) = delete;
};

}



#endif // QUEUE_PROCESS_HOST_H